import nacos

SERVER_ADDRESSES = "http://127.0.0.1:8848"  # Nacos服务器地址
NAMESPACE = "local"  # NAMESPACE为前面创建的命名空间ID

# 获取Nacos客户端
client = nacos.NacosClient(SERVER_ADDRESSES, namespace=NAMESPACE,
                           username="nacos", password="nacos")
